/*
 * @Description: 
 * @Author: xuzp4
 * @Date: 2022-03-22 09:06:08
 * @LastEditors: xuzp4
 * @LastEditTime: 2022-03-25 13:48:03
 * @FilePath: \visitor_management\src\main.js
 */
// import './utils/flexible'
import './config';
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store/index'
import Element from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '@/styles/index.less'
import '@/router/permission';
import i18n from './lang';
import './component.js';
import * as filters from './filters';
Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key]);
});
Vue.use(Element, {
  size: 'medium', // set element-ui default size
  i18n: function(path, options) {
    const value = i18n.t(path, options)
    if (value !== null && value !== undefined) {
      return value
    }
    return ''
  },
});

new Vue({
  router,
  store,
  render: h => h(App),
  i18n,
}).$mount('#app')
